import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'

import expert from './views/userlist/expert.vue'
import expertinfo from './views/userlist/expertinfo.vue'
import user from './views/userlist/user.vue'
import userinfo from './views/userlist/userInfo.vue'

import completed from './views/appreciate/completed.vue'
import unfinished from './views/appreciate/unfinished.vue'
import canceled from './views/appreciate/canceled.vue'

import articlelist from './views/learn/articlelist.vue'

import vendue from './views/vendue/vendue.vue'
import orderManage from "./views/vendue/orderManage.vue"

import indent from './views/indent/indent.vue'
import flowRecord from './views/finance/flowRecord.vue'
import settlement from './views/finance/settlement.vue'
import accountRecord from './views/finance/accountRecord.vue'
import appreciateDetails from './views/common/appreciateDetails.vue'


import userbaseinfo from './views/userlist/userbaseinfo.vue'
import userappreciaterecord from './views/userlist/userappreciaterecord.vue'
import userauctionrecord from './views/userlist/userauctionrecord.vue'
import userfinancerecord from './views/userlist/userfinancerecord.vue'

import expertappreciaterecord from './views/userlist/expertappreciaterecord.vue'
import expertbaseinfo from './views/userlist/expertbaseinfo.vue'
import expertfinancerecord from './views/userlist/expertfinancerecord.vue'

import addArticle from './views/learn/addArticle.vue'
import editArticle from './views/learn/editArticle.vue'

import appreciateCategory from './views/operate/appreciateCategory'
import appreciateCost from './views/operate/appreciateCost'
import appreciateRules from './views/operate/appreciateRules'
import expertsApplyEnter from './views/operate/expertsApplyEnter'
import integralRecord from './views/operate/integralRecord'


import lookMoreExpertsApplyInfo from './views/common/lookMoreExpertsApplyInfo.vue'


import empty from './views/common/empty.vue'
// import echarts from './views/charts/echarts.vue'

let routes = [

    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '用户模块',
        iconCls: 'fa fa-user-o',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/user', component: user, name: '用户列表' },
            { path: '/userinfo', component: userinfo, name: '用户详情',hidden: true,
                children:[
                    { path: '/userbaseinfo', component: userbaseinfo, name: '基础信息', hidden: true },
                    { path: '/userappreciaterecord', component: userappreciaterecord, name: '鉴赏记录', hidden: true },
                    { path: '/userauctionrecord', component: userauctionrecord, name: '拍卖记录', hidden: true },
                    { path: '/userfinancerecord', component: userfinancerecord, name: '财务记录', hidden: true }
                ]

             },
            { path: '/expert', component: expert, name: '专家列表' },
            { path: '/expertinfo',component: expertinfo,name: '专家详情',hidden: true,
              children:[
                    { path: '/expertbaseinfo', component: expertbaseinfo, name: '专家信息', hidden: true },
                    { path: '/expertappreciaterecord', component: expertappreciaterecord, name: '鉴赏记录', hidden: true },
                    { path: '/expertfinancerecord', component: expertfinancerecord, name: '收入结算', hidden: true }
                ]  
            },
            
        ]
    },
    {
        path: '/',
        component: Home,
        name: '鉴赏模块',
        iconCls: 'fa fa-arrow-right',
        children: [
            { path: '/completed', component: completed, name: '已经完成鉴赏列表' },
            { path: '/unfinished', component: unfinished, name: '未完成鉴赏列表' },
            { path: '/canceled', component: canceled, name: '已取消鉴赏列表' },
            { path: '/appreciateDetails',component: appreciateDetails,  name:"鉴赏详情",hidden:true},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '学馆模块',
        iconCls: 'fa fa-wifi',
        // leaf: true,//只有一个节点
        children: [
            { path: '/articlelist', component: articlelist, name: '文章列表' },
            { path: '/addArticle', component: addArticle, name: '新增文章',hidden:true },
            { path: '/editArticle', component: editArticle, name: '编辑文章' ,hidden:true}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '拍卖模块',
        iconCls: 'fa fa-spinner',
        children: [
            { path: '/vendue', component: vendue, name: '拍卖' },
            { path: '/orderManage', component: orderManage, name: '订单管理' }
        ]
    },
     {
        path: '/',
        component: Home,
        name: '运营模块',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/appreciateRules', component: appreciateRules, name: '鉴赏规则' },
            { path: '/appreciateCost', component: appreciateCost, name: '鉴赏费用' },
            { path: '/appreciateCategory', component: appreciateCategory, name: '鉴赏品类' },
            { path: '/expertsApplyEnter', component: expertsApplyEnter, name: '专家申请入驻' },
            { path: '/integralRecord', component: integralRecord, name: '积分记录' },
            { path: '/lookMoreExpertsApplyInfo', component: lookMoreExpertsApplyInfo, name: '查看申请专家更多信息',hidden:true }
        ]
    }, 
    {
        path: '/',
        component: Home,
        name: '订单模块',
        iconCls: 'fa fa-file-o',
        children: [
            { path: '/indent', component: indent, name: '订单模块' }
        ]
    }, 
    {
        path: '/',
        component: Home,
        name: '财务模块',
        iconCls: 'fa fa-cny',
        children: [
            { path: '/flowRecord', component: flowRecord, name: '平台流水记录' },
            { path: '/settlement', component: settlement, name: '专家结算' },
            {path:"/accountRecord",component:accountRecord,name:"结算记录",hidden:true},
        ]
    }, 
    {
        path: '/',
        component: Home,
        name: '系统模块',
        iconCls: 'fa fa-cog fa-spin',
        children: [
            { path: '/Login', component: Login, name: '系统登陆' }
        ]
    },
     {
        path: '/',
        hidden: true,
        name:"空——用于重载",
        children: [
            { path: '/empty' }
        ]
    },

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }

];

export default routes;